<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head class="am-topbar am-topbar-inverse admin-header">
<jsp:include page="/commonPages/admin-meta.jsp" flush="true" />
<!-- CSS files -->
<jsp:include page="/commonPages/admin-style.jsp" flush="true" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的申请</title>
<script src="<%=request.getContextPath()%>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/page.js"></script>

<script src="<%=request.getContextPath()%>/js/bootstrap.min.js"></script>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/assets/css/amazeui.min.css" />
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/assets/css/admin.css">
	<style type="text/css">
input{ vertical-align:middle; margin:0; padding:0}
.file-box{ position:relative;width:340px}
.txt{ height:22px; border:1px solid #cdcdcd; width:180px;}
.submit{position:relative;left:50%;}
.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px }
</style>
</head>
<script type="text/javascript">
	
	function getMaterial(flowId,flowName){
		alert(flowId);
		alert(flowName);
		
		$.ajax({
			contentType :"application/x-www-form-urlencoded;charset=utf-8",
            url : "user/getMaterial",
            type : "post",
            data : {
            	flowId : flowId,
            	flowName : flowName,
            },
		    success : function(data) {
            	if(data == "material")
            		window.location.href = "getMaterial.jsp";
            }
     });
	}
</script>
<body  style="overflow:auto;">


	<div id="wrapper">

		<!-- Navigation -->
		<jsp:include page="/commonPages/admin-navigator.jsp" flush="true" />

		<!-- Page Content -->
		<div id="page-wrapper">

	<div class="modal-body" >
				<div class="row">
  
		<form method="post" id="uploadForm" action="process/startProcess" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this, dialogAjaxDone);" >
		项目：<input value="${sessionScope.flowName }" name="type" style="border:none" readonly="true"/>
		<br/>
		请输入工程名：<input type="text" name="programName" style="height:25px">
        <table  class="table table-striped table-bordered table-hover" id="list_api">
			<thead>
				<tr> 
					<th class="table-id">序号</th>
					<th width="13%" class="table-author am-hide-sm-only">材料提供方</th>
					<th class="table-title">材料名称</th>
					<th class="table-set">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="material" items="${sessionScope.materialList}" varStatus="status">
				<tr>
					<td class="am-hide-sm-only">${requestScope.offset+status.index+1}</td>
					<td class="am-hide-sm-only">申请人提供</td>
					<td class="am-hide-sm-only">${material.flowMaterial }</td>
					<td class="am-hide-sm-only">
						<div class="file-box">
						 <input type='text' name='textfield' id='textfield${requestScope.offset+status.index}' class='txt' />  
						 <input type='button' class='btn' value='浏览...'/>
						 <input type="file" name="file1" class="file" id="fileField" multiple="multiple" size="28" onchange="document.getElementById('textfield${requestScope.offset+status.index}').value=this.value" />
						</div>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
		<input type="submit" name="submit" class="submit" value="上传"/>
		</form>
		<hr />
     

      
      
      
      
   
      </div>
      </div>
      
    </div>
    </div>
	
			
			
			
			


	<jsp:include page="/commonPages/admin-script.jsp" flush="true" />

</body>
</html>